﻿using com.kmer.Attributes;
using System;
using System.Collections.Generic;

namespace com.kmer.ApiServer.com.kmer.Model
{
    /// <summary>
    /// 用户登陆数据
    /// </summary>
    [Serializable]
    public class LoginUserData
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        [ParamDescription("用户ID")]
        public int CusID { get; set; }
        /// <summary>
        /// 用户昵称
        /// </summary>
        [ParamDescription("用户昵称")]
        public string NickName { get; set; }
        /// <summary>
        /// 头像
        /// </summary>
        [ParamDescription("头像")]
        public string Avatar { get; set; }
        /// <summary>
        /// 用户名（登陆用）
        /// </summary>
        [ParamDescription("用户名（登陆用）")]
        public string LoginID { get; set; }
        /// <summary>
        /// 手机号码
        /// </summary>
        [ParamDescription("手机号码")]
        public string Tel { get; set; }
        /// <summary>
        /// User AccessToken
        /// </summary>
        [ParamDescription("User AccessToken")]
        public string AccessToken { get; set; }
        /// <summary>
        /// RefreshToken 刷新用户token用的
        /// </summary>
        [ParamDescription("RefreshToken 刷新用户token用的")]
        public string Refresh { get; set; }
        /// <summary>
        /// 定版
        /// </summary>
        [ParamDescription("定版")]
        public bool? SetVersion { get; set; }
        /// <summary>
        /// 运营
        /// </summary>
        [ParamDescription("运营")]
        public bool? Grade { get; set; }
        /// <summary>
        /// 管理
        /// </summary>
        [ParamDescription("管理")]
        public bool? Management { get; set; }
        /// <summary>
        /// 拍照
        /// </summary>
        [ParamDescription("拍照")]
        public bool? TakePhoto { get; set; }
        /// <summary>
        /// 设备号
        /// </summary>
        [ParamDescription("设备号")]
        public string DeviceId { get; set; }
        /// <summary>
        /// 公司ID
        /// </summary>
        [ParamDescription("公司ID")]
        public string CompanyID { get; set; }


    }

    /// <summary>
    /// 用户关联的主要订单数据
    /// </summary>
    [Serializable]
    public class UserOrderMain
    {
        /// <summary>
        /// 订货会数
        /// </summary>
        [ParamDescription("订货会数")]
        public int? OrderFlag { get; set; }
        /// <summary>
        /// 参与数
        /// </summary>
        [ParamDescription("参与数")]
        public int? OrderInNumber { get; set; }
        /// <summary>
        /// 未参与数
        /// </summary>
        [ParamDescription("未参与数")]
        public int? OrderInNumber_Non { get; set; }
        /// <summary>
        /// 订货会列表
        /// </summary>
        [ParamDescription("订货会列表")]
        public List<SKC_OrderVM> OrderList { get; set; }
    }

    /// <summary>
    /// 绑定订货会列表
    /// </summary>
    [Serializable]
    public class SKC_OrderVM
    {
        /// <summary>
        /// 订货会ID
        /// </summary>
        [ParamDescription("订货会ID")]
        public int? MasterID { get; set; }
        /// <summary>
        /// 订货会名称
        /// </summary>
        [ParamDescription("订货会名称")]
        public string OrderName { get; set; }
        /// <summary>
        /// SKC需求数
        /// </summary>
        [ParamDescription("SKC需求数")]
        public int? SKCQty { get; set; }
        /// <summary>
        /// 订版数
        /// </summary>
        [ParamDescription("订版数")]
        public int? ChooseVersionNumber { get; set; }
    }

    /// <summary>
    /// 微信小程序用户信息
    /// </summary>
    [Serializable]
    public class WXUserData
    {
        [ParamDescription("OpenId")]
        public string OpenId { get; set; }
        [ParamDescription("用户名")]
        public string NickName { get; set; }
        [ParamDescription("权限类型：0-管理员，1-查看，2-评分.3-审版")]
        public int AccountType { get; set; }
    }
}
